package com.wcs.exam.controller.auth.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * Auth-用户账户消费记录-响应对象
 * </p>
 *
 * @author wcs
 * @since 2024-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Auth-用户账户消费记录-响应对象")
public class AuthUsersAccountConsumeResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "消费类型(1支出，2收入)")
    private Integer consumeType;

    @Schema(description = "消费金额(支出负数，收入是正数)")
    private BigDecimal consumeAmount;

    @Schema(description = "剩余金额")
    private BigDecimal balanceAmount;

    @Schema(description = "消费订单号")
    private Long orderNo;

    @Schema(description = "备注")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;
}
